package com.qidianit.mes.pro.service;

import com.qidianit.mes.common.Result;
import com.qidianit.mes.pojo.pro.WorkFlow;
import com.qidianit.mes.vo.WorkFlowPageVo;

import java.util.List;

/**
 * Package Path: com.qidianit.mes.pro.service
 * Author: Alhz
 * Description:
 * Date: 2025/9/17 16:43
 */
public interface WorkFlowService {
    /**
     * 分页查询
     * @param workFlowPageVo
     * @return
     */
    Result selectWorkFlowPage(WorkFlowPageVo workFlowPageVo, int page, int pageSize);

     /**
     * 根据工艺编号查询单个工艺信息
     * @param code
     * @return
     */
    Result selectWorkFlowByCode(String code);

    /**
     * 新增工艺流程
     * @param workFlow
     * @return
     */
    Result addWorkFlow(WorkFlow workFlow);

    /**
     * 编辑工艺流程
     * @param workFlow
     * @return
     */
    Result updateWorkFlow(WorkFlow workFlow);

    /**
     * 根据id删除单个工艺
     * @param id
     * @return
     */
    Result deleteWorkFlowById(Long id);

    /**
     * 批量删除多个工艺
     * @param ids
     * @return
     */
    Result batchDeleteWorkFlow(Long[] ids);
}
